import request from '@/utils/request'
// 内场工单


// 查询检查单类型-检查项列表
export function listNoPage() {
  return request({
    url: '/infield-basic-data/listNoPage',
    method: 'get',
  })
}

// 查询检查单分页数据
export function checkList(data) {
    return request({
      url: '/infield-vehicle-equipment-inspect/listByPage',
      method: 'post',
      data:data
    })
  }

  // 查询检查单车号车型数据
export function getCarData() {
  return request({
    url: '/infield-basic-data/listNoPage',
    method: 'get',
  })
}

// 根据id删除检查单记录
export function deleteinfieldOrder(id) {
  return request({
    url: '/infield-vehicle-equipment-inspect/delete/'+id,
    method: 'delete',
  })
}

// 根据id修改补加油量
export function changeRefuelingVolume(data) {
  return request({
    url: '/infield-vehicle-equipment-inspect/update',
    method: 'PUT',
    data:data
  })
}

// 查看详情页
export function inspectQueryById(data) {
  return request({
    url: "/infield-basic-data/queryById",
    method: "get",
    params:data,
  });
}
//
export function queryById(data) {
  return request({
    url: "/infield-vehicle-equipment-inspect/queryById",
    method: "get",
    params:data,
  });
}


export function annualStatistics(data) {
  return request({
    url: "/infield-vehicle-equipment-inspect/annualStatistics",
    method: "get",
    params:data,
  });
}

export function getInfieldSpecialVehicleCount(data) {
  return request({
    url: "/infield-vehicle-equipment-inspect/getInfieldSpecialVehicleCount",
    method: "get",
    params:data,
  });
}